const state = {
    messageNum: 0
}

const mutations = {
    update_Num: (state, value) => {
        state.messageNum = value
    }
}

const actions = {
    updateNum({ commit }, data) {
        commit('update_Num', data)
    }
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}